Repository navigation
Stepper keys, screen-reader narration and native dark controls - #3
Merged
Merged
Conversation
- Space on a focused button, link or disclosure presses it instead of toggling playback; Alt/Ctrl/Cmd combos go to the browser (Alt+← is Back). - Approach and language tabs take ←/→/Home/End and use a roving tabindex, so only the selected tab is a Tab stop. - The narration is a polite live region, muted while autoplay runs; the scrubber announces "Step 2 of 12: tally" via aria-valuetext. - tokens.css sets color-scheme per theme, so scrollbars, range tracks and spinners are drawn dark on the dark theme.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
This was referenced Sep 27, 2026
This was referenced Sep 28, 2026
devmtnaing
added a commit
that referenced
this pull request
Sep 28, 2026
lesson-kit.md now describes the page as it is after #3-#9 (LeetCode links past a divider, the sticky transport and wrapping strip, part 3 folding to the chosen approach) and adds the rules a lesson can still break: - mode ids and control keys are in every shared link; parse(format(v)) must give back v - a rejection message is a short phrase - modes[0] is what 2·2 and part 3 open on - a custom stage's headings are <h5 class="as-h3"> - empty says what it waits for; slots()/blank()/stageEmpty(), and a dot only as notation - a widget's own clickable elements are 40px tall on touch SKILL.md gains one judgement call: a kit change is measured on every lesson before choosing, with a before/after when it changes how pages look.
devmtnaing
added a commit
that referenced
this pull request
Sep 28, 2026
* Skill: what the UI/UX review changed for a lesson author lesson-kit.md now describes the page as it is after #3-#9 (LeetCode links past a divider, the sticky transport and wrapping strip, part 3 folding to the chosen approach) and adds the rules a lesson can still break: - mode ids and control keys are in every shared link; parse(format(v)) must give back v - a rejection message is a short phrase - modes[0] is what 2·2 and part 3 open on - a custom stage's headings are <h5 class="as-h3"> - empty says what it waits for; slots()/blank()/stageEmpty(), and a dot only as notation - a widget's own clickable elements are 40px tall on touch SKILL.md gains one judgement call: a kit change is measured on every lesson before choosing, with a before/after when it changes how pages look. * Audit: guard what the UI/UX review fixed npm run audit now also fails a page when: - a heading skips a level on any step - an answer slot, empty-stage note or ledger shows only a dot or dash (a dot in a stage cell is notation and allowed) - anything scrolls sideways at 320px (one code language; 400px keeps walking all of them) - space on a focused Next starts playback instead of pressing it, or → on an approach tab steps instead of moving between tabs - an untouched page has a query, a shared link reopens a different approach, step, code language, Part 3 pane or input, or "Report an issue" names a different state Repeats collapse to one line per approach, naming the first step. Each check was confirmed to fail with its fix reverted. CONTRIBUTING.md and the skill describe the new checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Three fixes from a UI/UX review of the x-sum page. They live in the shared stepper and theme tokens, so all 46 lessons get them; no lesson file changed.
Keyboard (
src/lib/stepper.js)Screen readers (
src/lib/stepper.js)aria-live="polite"region, so each step is read when you move to it. It goes quiet during autoplay, since a step every 700 ms would pile up, and speaks again on pause.aria-valuetextsuch as "Step 2 of 12: tally" (with a Burmese version) instead of a bare index.Dark theme (
src/styles/tokens.css)color-schemeis set for the light, system-dark and forced-dark states. Scrollbars, range tracks and number spinners now draw dark on the dark theme; the mobile array strip used to show a white scrollbar.Checked
npm run check: 46 lessons, 0 failures.npm run build, thennpm run audit(axe in both themes): passed, 46 pages.color-schemein all three theme states.